<?php
namespace App\Library; use Illuminate\Support\Facades\Log; class LogHelper { public static function setLogFile($sp15a98e) { Log::getMonolog()->setHandlers(array()); Log::useDailyFiles(storage_path(DIRECTORY_SEPARATOR . 'logs' . DIRECTORY_SEPARATOR . $sp15a98e . '_' . php_sapi_name() . '.log'), 0, config('app.log_level')); } }